package com.longrise.android.byjk.plugins.course.batchbuy;

import com.longrise.android.byjk.model.AllCourseChildBean;
import com.longrise.android.byjk.model.AllCourseParentBean;
import com.longrise.common.base.BasePresenter;
import com.longrise.common.base.BaseView;

import java.util.List;

/**
 * Created by callxkj on 2017/11/17.
 * 批量购买
 */

public interface BatchbuyContract {

    interface View extends BaseView {
        void initFirstAdapter(List<AllCourseParentBean> parentList);

        void refreshSecondAdapter(List<AllCourseChildBean> childList);

        void showTips(String[] tips);

        void showDiscountratePrice(boolean isSelected,String courseNum,String discountratePrice,String discountPriceDesc,String zhj);
    }

    abstract class presenter extends BasePresenter<View> {
        public abstract void loadAdapter2Data(String traintype);

        public abstract void calculatePrice(List<AllCourseChildBean> selectedCourseBeans);

    }

}
